package com.wjs.spring.bean2;

public class Husband {
    private Wife wife;
    private String name;

    public Husband(Wife wife, String name) {
        this.wife = wife;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Husband{" +
                "wife=" + wife +
                ", name='" + name + '\'' +
                '}';
    }
}
